package comm

import (
	"os"
)

var filename string

func init() {
	filename = "result.txt"
}

func CreateFile() {
	file, _ := os.OpenFile(filename, os.O_CREATE|os.O_TRUNC, 0666)
	defer file.Close()
}

func WriteFile(cont string) {
	file, _ := os.OpenFile(filename, os.O_APPEND, 0666)
	file.WriteString(cont)
	defer file.Close()
}
